package com.amigo.online.provider.video.model.entity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.ibatis.type.Alias;

import com.amigo.online.common.base.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * 视频评论记录实体类
 *
 * @author amigo
 */
@Table(name = "video_comment_tbl")
@Alias(value = "videoComment")
public class VideoComment extends BaseEntity {

    /**
     *
     */
    private static final long serialVersionUID = -9083203032077594042L;

    /**
     * 视频ID
     */
    @Column(name = "video_id")
    private Long videoId;

    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 评论内容
     */
    @Column(name = "content")
    private String content;

    /**
     * 状态
     */
    @Column(name = "status")
    private Integer status;

    /**
     * 评论ID
     */
    @Column(name = "comment_id")
    @JsonInclude(JsonInclude.Include.NON_DEFAULT)
    private Long commentId;
    /**
     * 评论类型  0：普通评论 ，1：@某人的评论
     */
    @JsonInclude(JsonInclude.Include.NON_DEFAULT)
    private Integer type;
    @Transient
    private String nickname;
    @Transient
    private String avatar;
	
	/*@Transient
	private String cmContent;
	@Transient
	private Long cmCreateTime;
	@Transient
	private String cmNickname;
	@Transient
	private String cmAvatar;*/


    public Long getVideoId() {
        return videoId;
    }

    public void setVideoId(Long videoId) {
        this.videoId = videoId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCommentId() {
        return commentId;
    }

    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
	/*public String getCmContent() {
		return cmContent;
	}
	public void setCmContent(String cmContent) {
		this.cmContent = cmContent;
	}
	public Long getCmCreateTime() {
		return cmCreateTime;
	}
	public void setCmCreateTime(Long cmCreateTime) {
		this.cmCreateTime = cmCreateTime;
	}
	public String getCmNickname() {
		return cmNickname;
	}
	public void setCmNickname(String cmNickname) {
		this.cmNickname = cmNickname;
	}
	public String getCmAvatar() {
		return cmAvatar;
	}
	public void setCmAvatar(String cmAvatar) {
		this.cmAvatar = cmAvatar;
	}*/

}
